<layout name='layout' />

<div class="admin-main">

	<blockquote class="layui-elem-quote">
		<a href="<{:U('User/add')}>" class="layui-btn layui-btn-small">
			<i class="layui-icon">&#xe608;</i> 添加
		</a>
		<a href="<{:U('User/log')}>" class="layui-btn layui-btn-small">
			<i class="layui-icon">&#xe60a;</i> 登录日志
		</a>
		<button class="layui-btn layui-btn-small layui-btn-danger" id="delBtn">
			<i class="fa fa-close"></i> 删除
		</button>
	</blockquote>

	<fieldset class="layui-elem-field">
		<legend>管理员</legend>
		<div class="layui-field-box">
			<form id="ajaxForm" method="post" action="<{:U('User/del')}>">
			<table class="site-table table-hover">
				<thead>
					<tr>
						<th><input type="checkbox" id="selected-all"></th>								
						<th>用户名</th>
						<th>用户组</th>
						<th>姓名</th>
						<th>手机</th>
						<th>状态</th>
						<th>创建日期</th>
						<th>操作</th>
					</tr>
				</thead>
				<tbody>
					<volist name="list" id="vo">
					<tr>
						<td><input type="checkbox" name="selectedids[]" value="<{$vo.id}>"></td>
						<td><{$vo.username}></td>
						<td><{$role[$vo['group']]}></td>
						<td><{$vo.name}></td>
						<td><{$vo.mobile}></td>
						<td><if condition="$vo.status eq 0"><font color="#FF0000">关闭</font><else />开启</if></td>
						<td><{$vo.createTime|date='Y-m-d H:i:s',###}></td>
						<td>
							<a href="<{:U('User/edit' , array('id'=>$vo['id']))}>" class="layui-btn layui-btn-mini">编辑</a>
							<a href="<{:U('User/log',array('id'=>$vo['id']))}>" class="layui-btn layui-btn-mini">登录日志</a>
						</td>
					</tr>
					</volist>				
				</tbody>
			</table>
			</form>
		</div>
	</fieldset>
</div>